#pragma once
#include "include/core/SkCanvas.h"
#include "include/core/SkPath.h"
#include "ShapeBase.h"

class ShapeNumber : public ShapeBase
{
public:
    ShapeNumber(const int &x, const int &y);
    ~ShapeNumber();
    bool OnMouseDown(const int &x, const int &y) override;
    bool OnMouseUp(const int &x, const int &y) override;
    bool OnMouseMove(const int &x, const int &y) override;
    void Paint(SkCanvas *canvas) override;
    bool OnMoseDrag(const int &x, const int &y) override;
    bool OnMouseWheel(const int& delta) override;
protected:
    void initParams();
    void makePath(const int &x1, const int &y1, const int &x2, const int &y2);
    SkPath path;
    bool stroke{true};
    int strokeWidth{4};
    SkColor color{SkColorSetARGB(255, 207, 19, 34)};
    int endX, endY;
    int hoverX, hoverY;
    float r;
    int number{1};
private:
};